# Created by: trasz <trasz@pin.if.uz.zgora.pl>
# $FreeBSD: head/graphics/openjpeg/Makefile 334403 2013-11-20 09:59:39Z mat $

PORTNAME=	openjpeg
PORTVERSION=	2.0.1
CATEGORIES=	graphics
MASTER_SITES=	SF/${PORTNAME}.mirror

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Open-source JPEG 2000 codec

LICENSE=	BSD
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libtiff.so:${PORTSDIR}/graphics/tiff \
		libpng15.so:${PORTSDIR}/graphics/png \
		liblcms2.so:${PORTSDIR}/graphics/lcms2

DOS2UNIX_FILES=	src/lib/openmj2/opj_malloc.h
GNU_CONFIGURE=	yes
USES=		cmake dos2unix pkgconfig
USE_LDCONFIG=	yes

PLIST_SUB=	VERSION=${PORTVERSION}

.include <bsd.port.mk>
